import { Rule, RuleType } from '@midwayjs/validate';
import { ApiProperty } from "@midwayjs/swagger";
export class UserDTO {
    //  swagger 的传参预设 example:约束  ,             description : 说明
  @ApiProperty({ example: 'Kitty', description: 'The name of the Catname'})
  @Rule(RuleType.number().required())
  id: number;
    // required 必填
}